import {
  get,
  post
} from "../http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

/**
 * 按需引入
 */

//获取见证标段
export const page = async (p) =>
  await post(api + "/witness/weeon/buss/task/jzr/page", p);
//获取见证任务
export const taskList = async (p) =>
  await post(api + "/witness/weeon/buss/task/jzr/taskList", p);

//开始见证任务
export const taskStart = async (p) =>
  await post(api + "/witness/weeon/buss/task/jzr/taskstart", p);
//更改见证状态
export const updateStatus = async (p) =>
  await post(api + "/witness/weeon/buss/task/jzr/updatestatus", p);
